package com.csdn.reposity;

import com.csdn.config.BaseConfig;

import java.util.List;

public class LoadConfigTask implements Runnable {
    ConfigReposity configReposity;
    Class<? extends BaseConfig> clazz;

    public LoadConfigTask(ConfigReposity configReposity, Class<? extends BaseConfig> clazz) {
        this.configReposity = configReposity;
        this.clazz = clazz;
    }

    @Override
    public void run() {
        //获取所有配置文件
        List<? extends BaseConfig> load = configReposity.load(clazz);
        //todo 存入缓存中

    }
}
